package com.service;

import java.util.Date;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.entity.UserIndustryRelationship;
import com.repository.GoodpriceDao;
import com.repository.UserIndustryRelationshipDao;
import com.service.base.BaseServiceImp;

@Service("userIndustryRelationshipService")
public class userIndustryRelationshipServiceImp extends BaseServiceImp<UserIndustryRelationship> implements userIndustryRelationshipService{
	@Autowired
	private UserIndustryRelationshipDao uirDao;
	
	@Override
	@Transactional
	public boolean insertprice(UserIndustryRelationship o) {
		// TODO Auto-generated method stub
//		String nid=o.getUser_id();
		UserIndustryRelationship uir=new UserIndustryRelationship();
//		user.setId(nid);
		List<UserIndustryRelationship> users=uirDao.find(uir);
		if (users.size()>0) {
			return false;
		}
		//String goodId=o.getGoodId();
		return true;
	}
	
}
